package com.engineering.elink.service;

import java.util.Map;

import com.engineering.elink.co.MessageSelectCo;

public interface MessageService {
	/**
	 * 获取消息列表 包含收发的
	 * @param userId
	 * @return
	 */
	public Map<String, Object> getMessageList (MessageSelectCo messageSelectCo);

	/**
	 * 发送消息
	 * @param userId
	 * @param byUserId
	 * @param message
	 * @return
	 */
	public boolean sendMessage (String userId, String byUserId, String content);
	
	/**
	 * 删除消息
	 * @param userId
	 * @param messageId
	 * @return
	 */
	public boolean removeMessage (String userId, int messageId);
	
	/**
	 * 读取消息
	 * @param userId
	 * @param messageId
	 * @return
	 */
	public boolean readMessage(String userId, int messageId);

	public boolean clearMessage(String userId);
}
